﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProduceBasicData.Api.DTO.ProductionManage
{
    /// <summary>
    /// 工单显示
    /// </summary>
    public class WorkOrderDto
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Order_no { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string Work_type { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int Customer_id { get; set; }

        /// <summary>
        /// 客户姓名
        /// </summary>
        public string Clientname { get; set; }
        /// <summary>
        /// BOM外键
        /// </summary>
        public int Product_id { get; set; }
        /// <summary>
        /// 系统编码
        /// </summary>
        public string? BOMCode { get; set; }
        /// <summary>
        /// BOM名称
        /// </summary>
        public string BOMName { get; set; }
        /// <summary>
        /// BOM用量
        /// </summary>
        public int? BOMDosage { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public int Producttion_id { get; set; }

        /// <summary>
        /// 产线编码
        /// </summary>
        public string Productioncode { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        public string Productionname { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        public int Order_number { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime Start_time { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime End_time { get; set; }
        /// <summary>
        /// 工单状态  1初始化,2待审批,3已下发,4已完成,5领料中,6领料完成
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string Upload { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Work_Desc { get; set; }


        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        /// 软删除标识
        /// </summary>
        public bool Isdel { get; set; } = false;


        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 车间管理外键
        /// </summary>
        public int WorkshopId { get; set; }
        /// <summary>
        /// 车间系统编码
        /// </summary>
        public string? Workshopcode { get; set; }

        /// <summary>
        /// 车间名称
        /// </summary>
        public string Workshopname { get; set; }

      
    }
}
